{% extends "base.html" %}
{% block css %}<link rel="stylesheet" type="text/css" href="{{settings.URL_ROOT}}media/css/codewiki.css" />{% endblock %}

{% block title %}Scope index{% endblock %}

{% block content %}
<h1><a href="{{settings.URL_ROOT}}scope">Common scope tool</a></h1>
<h2>Tabulated events submited by: {{scopeuser}}</h2>

get the sourcenums working
get the sourcenum pages working
thin out the columns according to a template entry (the first)


<ul>
{% for sourcenum in sourcesnum %}
    <li><a href="{{settings.URL_ROOT}}scope/user/{{scopeuser.name}}/{{sourcenum.0}}">{{scopeuser}}/{{sourcenum.0}}</a>: {{sourcenum.1}}</li>
{% endfor %}
</ul>

<table class="ddump">
<tr><th>district</th>
    <th>postcode</th>
    <th>linked title</th>
    <th>source</th>
    <th>datetime</th>
    <th>summary</th>
    <th>quantity</th>
</tr>
{% for scopeevent in scopeevents|dictsort:"district" %}
    <tr><td>{{scopeevent.district}}</td><td>{{scopeevent.postcode}}</td>
        <td><a href="{{scopeevent.url}}">{{scopeevent.title}}</a></td>
        <td>{{scopeevent.source}}</td>
        <td>{{scopeevent.evt_time}}</td>
        <td class="summarysmall">{{scopeevent.summary}}</td>
        <td>{{scopeevent.quantity}}</td>
    </tr>
{% endfor %}
</table>

{% endblock %}

